<!DOCTYPE html>
<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org" layout:decorate="main"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <title>书籍归还</title>
    <link th:href="@{/localcss/crmlist.css}" href="../static/localcss/crmlist.css" rel="stylesheet">


    <style>/* The Modal (background) */
    .black_overlay {
        display: none;
        position: absolute;
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%;
        background-color: black;
        z-index: 1001;
        -moz-opacity: 0.8;
        opacity: .80;
        filter: alpha(opacity=88);
    }

    .white_content {
        display: none;
        position: absolute;
        top: 25%;
        left: 25%;
        width: 35%;
        height: 500px;
        padding: 20px;
        border: 1px solid #145880;
        background-color: white;
        z-index: 1002;
        overflow: auto;
    }

    .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1; /* Sit on top */
        padding-top: 100px; /* Location of the box */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0, 0, 0); /* Fallback color */
        background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    }

    /* Modal Content */
    .modal-content {
        position: relative;
        background-color: #fefefe;
        margin: auto;
        padding: 0;
        border: 1px solid #888;
        width: 80%;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        -webkit-animation-name: animatetop;
        -webkit-animation-duration: 0.4s;
        animation-name: animatetop;
        animation-duration: 0.4s
    }

    /* Add Animation */
    @-webkit-keyframes animatetop {
        from {
            top: -300px;
            opacity: 0
        }
        to {
            top: 0;
            opacity: 1
        }
    }

    @keyframes animatetop {
        from {
            top: -300px;
            opacity: 0
        }
        to {
            top: 0;
            opacity: 1
        }
    }

    /* The Close Button */
    .close {
        color: white;
        float: right;
        font-size: 28px;
        font-weight: bold;
    }

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

    .modal-header {
        padding: 2px 16px;
        background-color: #5cb85c;
        color: white;
    }

    .modal-body {
        padding: 2px 16px;
    }

    .modal-footer {
        padding: 2px 16px;
        background-color: #5cb85c;
        color: white;
    }
    </style>

</head>
<body>
<div layout:fragment="content">
    <div class="">
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>
                            用户管理 <i class="fa fa-user"></i>
                            <small>
                                - 您可以通过搜索或者其他的筛选项对用户的信息进行编辑、删除等管理操作。^_^
                            </small>
                        </h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <form method="post" action="/user/userListPage" th:action="@{/user/userListPage}">
                            <input type="hidden" name="pageIndex" th:value="1"/>
                            <ul>
                                <li>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">用户名称</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <!--<input name="stdName" type="text" th:value="${stdName}"-->
                                            <!--class="form-control col-md-6 col-xs-12" value="">-->
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">角色</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <!--<select name="permissionId" id="permissionId" class="form-control">-->
                                            <!--<option value="0">&#45;&#45;请选择&#45;&#45;</option>-->
                                            <!--<option th:selected="${role1.permission.permissionId eq permissionId}"-->
                                            <!--th:each="role1:${role}"-->
                                            <!--th:value="${role1.permission.permissionId}"-->
                                            <!--th:text="${role1.permission.permissionName}" value="">-->
                                            <!--角色-->
                                            <!--</option>-->
                                            <!--</select>-->
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <button type="submit" class="btn btn-primary"> 查 &nbsp;&nbsp;&nbsp;&nbsp;询</button>
                                </li>
                            </ul>
                        </form>
                    </div>
                </div>
            </div>

            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_content">
                        <p class="text-muted font-13 m-b-30"></p>
                        <div id="datatable-responsive_wrapper"
                             class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                            <div class="row">
                                <div class="col-sm-12">
                                    <a href="/user/add" th:href="@{/user/add}"
                                       class="btn btn-success btn-sm">归还书籍情况</a>
                                    <table id="datatable-responsive"
                                           class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
                                           cellspacing="0" width="100%" role="grid"
                                           aria-describedby="datatable-responsive_info" style="width: 100%;">
                                        <thead>
                                        <tr role="row">
                                            <th class="sorting_asc" tabindex="0"
                                                aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                                aria-label="First name: activate to sort column descending"
                                                aria-sort="ascending">编号
                                            </th>
                                            <th class="sorting" tabindex="0"
                                                aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                                aria-label="Last name: activate to sort column ascending">
                                                图书名称
                                            </th>
                                            <th class="sorting" tabindex="0"
                                                aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                                aria-label="Last name: activate to sort column ascending">
                                                作者
                                            </th>
                                            <th class="sorting" tabindex="0"
                                                aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                                aria-label="Last name: activate to sort column ascending">
                                                出版社
                                            </th>
                                            <th class="sorting" tabindex="0"
                                                aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                                aria-label="Last name: activate to sort column ascending">
                                                书籍类别
                                            </th>
                                            <th class="sorting" tabindex="0"
                                                aria-controls="datatable-responsive" rowspan="1" colspan="1"
                                                aria-label="Last name: activate to sort column ascending">
                                                操作
                                            </th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr role="row" class="odd" th:each="user:${bookInfo}">
                                            <td tabindex="0" class="sorting_1" th:text="${user.id}">usrId</td>
                                            <td th:text="${user.bookName}"></td>
                                            <td th:text="${user.publish}">roleName</td>
                                            <td th:text="${user.author}">roleName</td>
                                            <td th:text="${user.bookCategory.bookCategoryName}">roleName</td>
                                            <td>
                                                <a class="btn btn-danger"
                                                   onclick="document.getElementById('light').style.display='block'"id="xqck"
                                                >详细查看
                                                </a>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="light" class="white_content">
        <div class="x_panel">
            <div class="x_title">
                <h2>批次入库 <i class="fa fa-user"></i></h2>
                <div class="clearfix"></div>
            </div>
            <div style="width:300px;"><span
                    style="display:inline-block;width:90px;">货物名称 *</span><input type="text"
                                                                                 name="cec_Firstname"
                                                                                 value=""
                                                                                 required
                                                                                 maxlength="20"
                                                                                 placeholder="请输入货物名称"
                                                                                 id="hwmc"/>
            </div>
            <br>
            <div style="width:300px;"><span
                    style="display:inline-block;width:90px;">供货商名称 *</span><input
                    type="text" name="cec_email" value="" required maxlength="50"
                    placeholder="供货商名称" id="mc"/></div>
            <br>
            <div style="width:300px;"><span
                    style="display:inline-block;width:90px;">价格 *</span><input type="text"
                                                                               name="cec_Company"
                                                                               value=""
                                                                               required
                                                                               maxlength="20"
                                                                               placeholder="请输入价格"
                                                                               id="jg"/>
            </div>
        </div>
        <a class="btn btn-danger"
           onclick="document.getElementById('light').style.display='none'"
        >详细查看</a>
    </div>
</div>
</div>
</body>
<script layout:fragment="js">
</script>
<script>

  ajax({
        url:"/borrow/okok",
        data:"id="+,
        type:"GET/POST",,
        dataType:"json",
        success:function (data) {
        $("#hwmc").text(this.属性名)
        $("#hwmc").var(this.属性名)
        append();
    }
    })
</script>
</html>